package com.multi.thread.chapter01;

/**
 *	判断当前线程是否处于活动状态
 */
public class IsAlive extends Thread {

	@Override
	public void run() {
		System.out.println("run = " + this.isAlive());
	}
	
	public static void main(String[] args) throws InterruptedException {
		IsAlive thread = new IsAlive();
		System.err.println(thread.getId());
		System.out.println("begin = " + thread.isAlive());
		thread.start();
		System.out.println("end = " + thread.isAlive());
		System.err.println(thread.getId());
	}

}
